package putao.ui
{
	import flash.text.TextFieldAutoSize;
	
	import putao.ui.assets.Assets;
	
	public class PCheckBox extends PSelectButton
	{
		public function PCheckBox(text:String="")
		{
			super(text);
			
			txtLabel.x = 20;
			txtLabel.y = -4;
			txtLabel.autoSize = TextFieldAutoSize.LEFT;
		}
		
		override public function resize(width:Number, height:Number):void
		{
			//			super.setSize(width, height);
		}
		
		override protected function initDefaultSkin():void
		{
			sBtnDafult = Assets.getDisplayObject(Assets.CheckDefault);
			sBtnRollover = Assets.getDisplayObject(Assets.CheckRollover);
			sBtnPressed = Assets.getDisplayObject(Assets.CheckPressed);
			sBtnDisabled = Assets.getDisplayObject(Assets.CheckDisabled);
			sSelectedBtnDafult = Assets.getDisplayObject(Assets.CheckSelDefault);
			sSelectedBtnRollover = Assets.getDisplayObject(Assets.CheckSelRollover);
			sSelectedBtnPressed = Assets.getDisplayObject(Assets.CheckSelPressed);
			sSelectedBtnDisabled = Assets.getDisplayObject(Assets.CheckSelDisabled);
		}
	}
}